#pragma once
#include <xaudio2.h>
#include <xaudio2fx.h>

namespace DXBase
{
	namespace Media
	{
		// MediaReader:
		// This is a helper class for the SoundEffect class.  It reads small audio files
		// synchronously from the package installed folder and returns sound data as a
		// byte array.

		ref class MediaReader
		{
		internal:
			MediaReader();

			Platform::Array<byte>^          LoadMedia(_In_ Platform::String^ filename);
			WAVEFORMATEX*                   GetOutputWaveFormatEx();

		protected private:
			Windows::Storage::StorageFolder^ m_installedLocation;
			Platform::String^               m_installedLocationPath;
			WAVEFORMATEX                    m_waveFormat;
		};
	}
}